package model

/*
  FaultEngine = 0; // 电机故障
  FaultHall = 1; // 霍尔故障
  FaultBrakeLever = 2; //刹把故障
  FaultHandlebar = 3; // 转把故障
  FaultStallProtection = 4; // 堵转保护
  FaultOverSpeedProtection = 5; // 飞车保护故障
  FaultUnderVoltage = 6; // 欠压保护
  FaultControllerProtection = 7; // 控制器保护
  FaultController = 8; // 控制器故障
  FaultLowVoltageAlarm = 9; // 低压报警
  FaultMonomerOverpressure = 10; // 单体过压
  FaultMonomerUnderVoltage = 11; // 单体欠压
  FaultOverPressure = 12; // 总压过压
  FaultOverallUnderVoltage = 13; // 总压欠压
  Fault0VDisabled = 14; // 0V 禁用
  FaultBatteryChargingOverheating = 15; // 电池充电过温
  FaultBatteryChargingLowTemperature = 16; // 电池充电低温
  FaultBatteryDischargeHighTemperature = 17; // 电池放电高温
  FaultBatteryDischargeLowTemperature = 18; // 电池放电低温
  FaultBatteryTemperatureDiffTooLarge = 19; // 电池温差过大
  FaultBatteryEqualizationTemperatureHigh = 20; // 电池均衡温度过高
  FaultMOSTemperatureHigh = 21; // 电池MOS温度过高
  FaultResistorTemperatureHigh = 22; // 电池预放电阻温度过高
  FaultChargingOverCurrent = 23; // 电池充电过流
  FaultFeedbackOverCurrent = 24; // 电池回馈过流
  FaultDischargeOverCurrent = 25; // 电池放电过流
  FaultPreDischargeOverCurrent = 26; // 电池预放过流
  FaultPreDischargeTimeout = 27; // 电池预放超时
  FaultSOCLow = 28; // 电池SOC过低
  FaultInsulationLow = 29; // 电池绝缘过低
  FaultBatteryShortCircuit = 30; // 电池短路
  FaultBatteryDisconnectionShortCircuit = 31; // 单体电压采集异常(断线或短路)
  FaultBatteryTemperatureCollection = 32; // 电池温度采集异常
  FaultBatteryInternalCommunication = 33; // 电池内部通讯异常
  FaultPreDischargeMOS = 34; // 预放电MOS故障
  FaultDischargeMOS = 35; // 放电MOS故障
  FaultChargeMos = 36; // 充电MOS故障
  FaultBatteryEOFEOL = 37; // 电池寿命终止故障EOL
*/

type Fault struct {
	FaultEngine                             uint8
	FaultHall                               uint8
	FaultBrakeLever                         uint8
	FaultHandlebar                          uint8
	FaultStallProtection                    uint8
	FaultOverSpeedProtection                uint8
	FaultUnderVoltage                       uint8
	FaultControllerProtection               uint8
	FaultController                         uint8
	FaultLowVoltageAlarm                    uint8
	FaultMonomerOverpressure                uint8
	FaultMonomerUnderVoltage                uint8
	FaultOverPressure                       uint8
	FaultOverallUnderVoltage                uint8
	Fault0VDisabled                         uint8
	FaultBatteryChargingOverheating         uint8
	FaultBatteryChargingLowTemperature      uint8
	FaultBatteryDischargeHighTemperature    uint8
	FaultBatteryDischargeLowTemperature     uint8
	FaultBatteryTemperatureDiffTooLarge     uint8
	FaultBatteryEqualizationTemperatureHigh uint8
	FaultMOSTemperatureHigh                 uint8
	FaultResistorTemperatureHigh            uint8
	FaultChargingOverCurrent                uint8
	FaultFeedbackOverCurrent                uint8
	FaultDischargeOverCurrent               uint8
	FaultPreDischargeOverCurrent            uint8
	FaultPreDischargeTimeout                uint8
	FaultSOCLow                             uint8
	FaultInsulationLow                      uint8
	FaultBatteryShortCircuit                uint8
	FaultBatteryDisconnectionShortCircuit   uint8
	FaultBatteryTemperatureCollection       uint8
	FaultBatteryInternalCommunication       uint8
	FaultPreDischargeMOS                    uint8
	FaultDischargeMOS                       uint8
	FaultChargeMos                          uint8
	FaultBatteryEOFEOL                      uint8
}
